import java.util.Scanner;

//简写单词
public class test1 {
    public static void main(String[] args) {
        //输入字符串(需要保存空格) --> 用空格分开
        Scanner scanner = new Scanner(System.in);
        String input = scanner.nextLine();//这个可以输入空格
        String[] strs = input.split(" ");//用空格分开
        for (int i = 0; i < strs.length; i++) {
            char[] str = strs[i].toCharArray();
            if(str[0]>='a'&&str[0]<='z'){
                char a = strs[i].charAt(0);
                a =(char)(a-32);
                System.out.print(a);
                continue;
            }
            System.out.print(str[0]);
        }
    }
}
